<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>
<body>
  <script>
  
  function minNum(...args) {
    var minNum=arguments[0]
    for(var i=1;i<arguments.length;i++){
        if(arguments[i]<minNum){
          minNum=arguments[i]
        }
    }
   return console.log(minNum)
  }
  
     minNum(10,11,13,4,2)
  
  </script>
</body>
</html>
